﻿@{
    ViewBag.Title = "Log in";
    Layout = "~/Views/Shared/_LayoutLogin.cshtml";
}

@model Auditiac.Models.LoginModel

@{
    ViewBag.Title = "Log in";
}

@*<div class="login-card">
    <h1>Log-in</h1>
    <br>
    <form>
        <input type="text" name="user" placeholder="Username">
        <input type="password" name="pass" placeholder="Password">
        <input type="submit" name="login" class="login login-submit" value="login">
    </form>

    <div class="login-help">
        <a href="#">Register</a> • <a href="#">Forgot Password</a>
    </div>
</div>*@


<section id="loginForm">

    @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
    {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)
        <div class="login-card">
            <h1>Log-in</h1>
            <br>         
                    @Html.TextBoxFor(m => m.UserName, new { name = "user", placeholder = "Username" })
                    @Html.ValidationMessageFor(m => m.UserName)
               
                
              @Html.PasswordFor(m => m.Password, new { name = "pass", placeholder = "Password" })
                    @Html.ValidationMessageFor(m => m.Password)

             @Html.CheckBoxFor(m => m.RememberMe)
                    @Html.LabelFor(m => m.RememberMe)                   
                <input type="submit" name="login" class="login login-submit" value="login" style="margin-top:10px;">            

            <div class="login-help">
                 @Html.ActionLink("Forgot Password","Register", "Register")
            </div>
        </div>
    }
</section>


